package oop3.pet01;

public class Parrot extends Pet {
    Parrot(String name, int weight, int age, char sex, String strain, int love) {
        super(name, weight, age, sex, strain, love);
    }

    public void say() {
        System.out.println("鹦鹉"+super.getName() + "说Hello");
    }

    public void fly() {
        System.out.println("鹦鹉"+super.getName() + "在飞行");
    }
}
